package cn.edu.cqut.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;

import javax.xml.crypto.Data;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cqut-917371
 * @since 2020-06-24
 */
public class Plan extends Model<Plan> {

    private static final long serialVersionUID=1L;

    /**
     * 开发计划编号
     */
    @TableId(value = "pl_no", type = IdType.AUTO)
    private Integer plNo;

    /**
     * 日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate plDate; 

    /**
     * 计划内容
     */
    private String plContent;

    /**
     * 开发状态：0:开发中，1:开发成功，2:开发失败
     */
    private Integer plState;

    /**
     * 销售机会编号
     */
    private Integer chNo;


    public Integer getPlNo() {
        return plNo;
    }

    public void setPlNo(Integer plNo) {
        this.plNo = plNo;
    }

    public LocalDate getPlDate() {
        return plDate;
    }

    public void setPlDate(LocalDate plDate) {
        this.plDate = plDate;
    }

    public String getPlContent() {
        return plContent;
    }

    public void setPlContent(String plContent) {
        this.plContent = plContent;
    }

    public Integer getPlState() {
        return plState;
    }

    public void setPlState(Integer plState) {
        this.plState = plState;
    }

    public Integer getChNo() {
        return chNo;
    }

    public void setChNo(Integer chNo) {
        this.chNo = chNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.plNo;
    }

    @Override
    public String toString() {
        return "Plan{" +
        "plNo=" + plNo +
        ", plDate=" + plDate +
        ", plContent=" + plContent +
        ", plState=" + plState +
        ", chNo=" + chNo +
        "}";
    }
}
